﻿@inherits DemoWithResizableComponent

<div class="demo-description" id="ReadOnly">
    <h2><DemoNavLink Link="SpinEdit#ReadOnly" />Spin Edit - Read-Only Mode</h2>
    <p>
        <a class="helplink" target="_blank" href="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxSpinEdit-1">Spin Edit</a> allows you to display the value, but does not allow users to change it.
        Set the <a class="helplink" target="_blank" href="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxSpinEdit-1.ReadOnly">ReadOnly</a> property to <b>true</b> to activate the read-only mode.
    </p>
</div>

<div class="card demo-card demo-card-shadow">
    <div class="card-header">
        <DemoToolbar @bind-SelectedSize="SizeMode" Title="The value cannot be changed" />
    </div>
    <div class="card-body mw-480">
        <DxSpinEdit @bind-Value="@NumericValue" ReadOnly="true" SizeMode="@SizeMode"></DxSpinEdit>
    </div>
</div>

<CodeSnippet_Editor_SpinEdit_ReadOnly/>

@code {
    int? NumericValue { get; set; } = 180798;
}
